home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / c_toolbx.arc / ASMTOOLS.H next >
Encoding:
C/C++ Source or Header  |  1988-03-30  |  814 b   |  38 lines

  1. /* asmtools.h - header file for ASMTOOLS module  */
  2.  
  3. typedef struct
  4.   {  word16
  5.         ax , bx , cx , dx ,
  6.         si , di , bp , sp ,
  7.         ds , es , ss , cs ;
  8.   }  REGS ;
  9.  
  10.  
  11. typedef struct
  12.   {  char  al , ah ,
  13.            bl , bh ,
  14.            cl , ch ,
  15.            dl , dh ;
  16.   }  BYTE_REGS ;
  17.  
  18.  
  19. /* flag bit definitions */
  20. #define    ZF_FLAG     0x40
  21. #define    AF_FLAG     0x10
  22. #define    PF_FLAG     0x04
  23. #define    CF_FLAG     0x01
  24. #define    TF_FLAG     0x0100
  25. #define    SF_FLAG     0x0080
  26. #define    IF_FLAG     0x0200
  27. #define    DF_FLAG     0x0400
  28. #define    OF_FLAG     0x0800
  29.  
  30. #define    DOS_CALL    0x21             /* s/w interrupt no. for DOS call */
  31.  
  32. /* adsolute disk read and write interrupt numbers */
  33. #define    ABS_READ    0x25
  34. #define    ABS_WRITE   0x26
  35.  
  36.  
  37.  
  38.